Method, System and Apparatus for Object Detection in Point Clouds

ABSTRACT

A method of detecting objects on a support structure includes: obtaining a point cloud of the support structure supporting an object; obtaining a position of a back of the support structure in the point cloud; discarding a portion of the point cloud based on the position of the back of the support structure; generating a three-dimensional occupancy grid from the point cloud, the occupancy grid having a plurality of cells each indicating whether the cell is one of occupied and unoccupied; identifying a contiguous region of occupied cells in the occupancy grid corresponding to the object; and generating a detected object position based on the contiguous region.

BACKGROUND

Environments in which inventories of objects are managed, such as products for purchase in a retail environment, may be complex and fluid. For example, a given environment may contain a wide variety of objects with different attributes (size, shape, price and the like). Further, the placement and quantity of the objects in the environment may change frequently. Still further, imaging conditions such as lighting may be variable both over time and at different locations in the environment. These factors may reduce the accuracy with which such objects can be detected in data captured within the environment.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The accompanying figures, where like reference numerals refer to identical or functionally similar elements throughout the separate views, together with the detailed description below, are incorporated in and form part of the specification, and serve to further illustrate embodiments of concepts that include the claimed invention, and explain various principles and advantages of those embodiments.

FIG. 1 is a schematic of a mobile automation system.

FIG. 2A depicts a mobile automation apparatus in the system of FIG. 1.

FIG. 2B is a block diagram of certain internal hardware components of the mobile automation apparatus in the system of FIG. 1.

FIG. 3 is a flowchart of a method for detecting objects in a point cloud.

FIG. 4A is a diagram illustrating data obtained at block 305 of the method of FIG. 3.

FIG. 4B is a diagram illustrating the transformation of the data obtained at block 305 of the method of FIG. 3 to a secondary frame of reference.

FIG. 5A is a diagram illustrating the removal of a portion of the point cloud at block 315 of the method of FIG. 3

FIGS. 5B and 6A-6B are diagrams illustrating the generation of an occupancy grid at block 320 of the method of FIG. 3.

FIG. 7 is a diagram illustrating contiguous sub-regions identified in the occupancy grid at block 330 of the method of FIG. 3.

FIGS. 8 and 9A are diagrams illustrating the performance of blocks 340-350 of the method of FIG. 3.

FIG. 9B is a diagram illustrating detected object positions generated at block 355 of the method of FIG. 3.

FIG. 10 is a diagram illustrating the segmentation of a point cloud prior to object detection.

Skilled artisans will appreciate that elements in the figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help to improve understanding of embodiments of the present invention.

The apparatus and method components have been represented where appropriate by conventional symbols in the drawings, showing only those specific details that are pertinent to understanding the embodiments of the present invention so as not to obscure the disclosure with details that will be readily apparent to those of ordinary skill in the art having the benefit of the description herein.

DETAILED DESCRIPTION

Examples disclosed herein are directed to a method of detecting objects on a support structure, the method comprising: obtaining a point cloud of the support structure supporting an object; obtaining a position of a back of the support structure in the point cloud; discarding a portion of the point cloud based on the position of the back of the support structure; generating a three-dimensional occupancy grid from the point cloud, the occupancy grid having a plurality of cells each indicating whether the cell is one of occupied and unoccupied; identifying a contiguous region of occupied cells in the occupancy grid corresponding to the object; and generating a detected object position based on the contiguous region.

Additional examples disclosed herein are directed to a computing device for detecting objects on a support structure, comprising: a memory storing (i) a point cloud of the support structure supporting an object, and (ii) a position of a back of the support structure in the point cloud; an imaging controller connected to the memory, the imaging controller configured to: retrieve, from the memory, the point cloud and the position of the back of the support structure in the point cloud; discard a portion of the point cloud based on the position of the back of the support structure; generate a three-dimensional occupancy grid from the point cloud, the occupancy grid having a plurality of cells each indicating whether the cell is one of occupied and unoccupied; identify a contiguous region of occupied cells in the occupancy grid corresponding to the object; and generate a detected object position based on the contiguous region.

Further examples disclosed herein are directed to a non-transitory computer-readable medium storing a plurality of computer-readable instructions executable by a processor of a computing device, wherein execution of the instructions configures the computing device to: obtain a point cloud of a support structure supporting an object; obtain a position of a back of the support structure in the point cloud; discard a portion of the point cloud based on the position of the back of the support structure; generate a three-dimensional occupancy grid from the point cloud, the occupancy grid having a plurality of cells each indicating whether the cell is one of occupied and unoccupied; identify a contiguous region of occupied cells in the occupancy grid corresponding to the object; and generate a detected object position based on the contiguous region.

FIG. 1 depicts a mobile automation system 100 in accordance with the teachings of this disclosure. The system 100 is illustrated as being deployed in a retail environment, but in other embodiments can be deployed in a variety of other environments, including warehouses, hospitals, and the like. The system 100 includes a server 101 in communication with at least one mobile automation apparatus 103 (also referred to herein simply as the apparatus 103) and at least one client computing device 105 via communication links 107, illustrated in the present example as including wireless links. In the present example, the links 107 are provided by a wireless local area network (WLAN) deployed within the retail environment by one or more access points (not shown). In other examples, the server 101, the client device 105, or both, are located outside the retail environment, and the links 107 therefore include wide-area networks such as the Internet, mobile networks, and the like. The system 100 also includes a dock 108 for the apparatus 103 in the present example. The dock 108 is in communication with the server 101 via a link 109 that in the present example is a wired link. In other examples, however, the link 109 is a wireless link.

The client computing device 105 is illustrated in FIG. 1 as a mobile computing device, such as a tablet, smart phone or the like. In other examples, the client device 105 is implemented as another type of computing device, such as a desktop computer, a laptop computer, another server, a kiosk, a monitor, and the like. The system 100 can include a plurality of client devices 105 in communication with the server 101 via respective links 107.

The system 100 is deployed, in the illustrated example, in a retail environment including a plurality of support structures such as shelf modules 110-1, 110-2, 110-3 and so on (collectively referred to as shelves 110, and generically referred to as a shelf 110—this nomenclature is also employed for other elements discussed herein). In other examples, additional types of support structures may also be present, such as pegboards. Each shelf module 110 supports a plurality of products 112. Each shelf module 110 includes a shelf back 116-1, 116-2, 116-3 and a support surface (e.g. support surface 117-3 as illustrated in FIG. 1) extending from the shelf back 116 to a shelf edge 118-1, 118-2, 118-3.

The shelf modules 110 are typically arranged in a plurality of aisles, each of which includes a plurality of modules 110 aligned end-to-end. In such arrangements, the shelf edges 118 face into the aisles, through which customers in the retail environment as well as the apparatus 103 may travel. As will be apparent from FIG. 1, the term “shelf edge” 118 as employed herein, which may also be referred to as the edge of a support surface (e.g., the support surfaces 117) refers to a surface bounded by adjacent surfaces having different angles of inclination. In the example illustrated in FIG. 1, the shelf edge 118-3 is at an angle of about ninety degrees relative to each of the support surface 117-3 and the underside (not shown) of the support surface 117-3. In other examples, the angles between the shelf edge 118-3 and the adjacent surfaces, such as the support surface 117-3, is more or less than ninety degrees. The shelf edges 118 define a front of the shelves 110, separated from the shelf backs 116 by a shelf depth. A common frame of reference 102 is illustrated in FIG. 1. In the present example, the shelf depth is defined in the Y dimension of the frame of reference 102, while the shelf backs 116 and shelf edges 118 are shown as being parallel to the XZ plane.

The apparatus 103 is deployed within the retail environment, and communicates with the server 101 (e.g. via the link 107) to navigate, autonomously or partially autonomously, along a length 119 (illustrated in FIG. 1 as being parallel to the X axis of the frame of reference 102) of at least a portion of the shelves 110. The apparatus 103, autonomously or in conjunction with the server 101, is configured to continuously determine its location within the environment, for example with respect to a map of the environment. The apparatus 103 may also be configured to update the map (e.g. via a simultaneous mapping and localization, or SLAM, process).

The apparatus 103 is equipped with a plurality of navigation and data capture sensors 104, such as image sensors (e.g. one or more digital cameras) and depth sensors (e.g. one or more Light Detection and Ranging (LIDAR) sensors, one or more depth cameras employing structured light patterns, such as infrared light, or the like). The apparatus 103 can be configured to employ the sensors 104 to both navigate among the shelves 110 (e.g. according to the paths mentioned above) and to capture shelf data, such as point cloud and image data, during such navigation.

The server 101 includes a special purpose imaging controller, such as a processor 120, specifically designed to control and/or assist the mobile automation apparatus 103 to navigate the environment and to capture data. The processor 120 can be further configured to obtain the captured data via a communications interface 124 for storage in a repository 132 and subsequent processing (e.g. to detect objects such as shelved products 112 in the captured data, and detect status information corresponding to the objects). The server 101 may also be configured to transmit status notifications (e.g. notifications indicating that products are out-of-stock, low stock or misplaced) to the client device 105 responsive to the determination of product status data. The client device 105 includes one or more controllers (e.g. central processing units (CPUs) and/or field-programmable gate arrays (FPGAs) and the like) configured to process (e.g. to display) notifications received from the server 101.

The processor 120 is interconnected with a non-transitory computer readable storage medium, such as the above-mentioned memory 122, having stored thereon computer readable instructions for performing various functionality, including control of the apparatus 103 to capture shelf data, post-processing of the shelf data, and generating and providing certain navigational data to the apparatus 103, such as target locations at which to capture shelf data. The memory 122 includes a combination of volatile (e.g. Random Access Memory or RAM) and non-volatile memory (e.g. read only memory or ROM, Electrically Erasable Programmable Read Only Memory or EEPROM, flash memory). The processor 120 and the memory 122 each comprise one or more integrated circuits. In some embodiments, the processor 120 is implemented as one or more central processing units (CPUs) and/or graphics processing units (GPUs).

The server 101 also includes the above-mentioned communications interface 124 interconnected with the processor 120. The communications interface 124 includes suitable hardware (e.g. transmitters, receivers, network interface controllers and the like) allowing the server 101 to communicate with other computing devices—particularly the apparatus 103, the client device 105 and the dock 108—via the links 107 and 109. The links 107 and 109 may be direct links, or links that traverse one or more networks, including both local and wide-area networks. The specific components of the communications interface 124 are selected based on the type of network or other links that the server 101 is required to communicate over. In the present example, as noted earlier, a wireless local-area network is implemented within the retail environment via the deployment of one or more wireless access points. The links 107 therefore include either or both wireless links between the apparatus 103 and the mobile device 105 and the above-mentioned access points, and a wired link (e.g. an Ethernet-based link) between the server 101 and the access point.

The memory 122 stores a plurality of applications, each including a plurality of computer readable instructions executable by the processor 120. The execution of the above-mentioned instructions by the processor 120 configures the server 101 to perform various actions discussed herein. The applications stored in the memory 122 include an object detection application 128 (also referred to herein as the application 128), which may also be implemented as a suite of logically distinct applications. In general, via execution of the application 128 or subcomponents thereof and in conjunction with the other components of the server 101, the processor 120 is configured to implement various functionality related to obtaining captured data from the apparatus 103 and performing various post-processing operations on the captured data. In the present example, as discussed below in greater detail, execution of the application 128 configures the server 101 to detect objects (e.g. the products 112) on the shelves 110 from point cloud data, such as a point cloud generated from data captured by the apparatus 103.

The processor 120, as configured via the execution of the control application 128, is also referred to herein as the above-mentioned imaging controller 120. As will now be apparent, some or all of the functionality implemented by the controller 120 described below may also be performed by preconfigured special purpose hardware controllers (e.g. one or more FPGAs and/or Application-Specific Integrated Circuits (ASICs) having logic circuit arrangements configured to enhance the processing speed of imaging computations) rather than by execution of the application 128 by the processor 120.

Turning now to FIGS. 2A and 2B, the mobile automation apparatus 103 is shown in greater detail. The apparatus 103 includes a chassis 201 containing a locomotive mechanism 203 (e.g. one or more electrical motors driving wheels, tracks or the like). The apparatus 103 further includes a sensor mast 205 supported on the chassis 201 and, in the present example, extending upwards (e.g., substantially vertically) from the chassis 201. The mast 205 supports the sensors 104 mentioned earlier. In particular, the sensors 104 include at least one imaging sensor 207, such as a digital camera, as well as at least one depth sensor 209, such as a 3D digital camera. The apparatus 103 also includes additional depth sensors, such as LIDAR sensors 211. In other examples, the apparatus 103 includes additional sensors, such as one or more RFID readers, temperature sensors, and the like.

In the present example, the mast 205 supports seven digital cameras 207-1 through 207-7, and two LIDAR sensors 211-1 and 211-2. The mast 205 also supports a plurality of illumination assemblies 213, configured to illuminate the fields of view of the respective cameras 207. That is, the illumination assembly 213-1 illuminates the field of view of the camera 207-1, and so on. The sensors 207 and 211 are oriented on the mast 205 such that the fields of view of each sensor face a shelf 110 along the length 119 of which the apparatus 103 is travelling. The apparatus 103 is configured to track a location of the apparatus 103 (e.g. a location of the center of the chassis 201) in the common frame of reference 102 previously established in the retail facility, permitting data captured by the mobile automation apparatus 103 to be registered to the common frame of reference.

The mobile automation apparatus 103 includes a special-purpose controller, such as a processor 220, as shown in FIG. 2B, interconnected with a non-transitory computer readable storage medium, such as a memory 222. The memory 222 includes a combination of volatile (e.g. Random Access Memory or RAM) and non-volatile memory (e.g. read only memory or ROM, Electrically Erasable Programmable Read Only Memory or EEPROM, flash memory). The processor 220 and the memory 222 each comprise one or more integrated circuits. The memory 222 stores computer readable instructions for execution by the processor 220. In particular, the memory 222 stores a control application 228 which, when executed by the processor 220, configures the processor 220 to perform various functions related to the navigation of the apparatus 103 and capture of data for subsequent processing, e.g. by the server 101. In some embodiments, such subsequent processing can be performed by the apparatus 103 itself via execution of the application 228. The application 228 may also be implemented as a suite of distinct applications in other examples.

The processor 220, when so configured by the execution of the application 228, may also be referred to as an imaging controller 220. Those skilled in the art will appreciate that the functionality implemented by the processor 220 via the execution of the application 228 may also be implemented by one or more specially designed hardware and firmware components, such as FPGAs, ASICs and the like having logic circuit arrangements configured to enhance the processing speed of navigational and/or imaging computations in other embodiments.

The memory 222 may also store a repository 232 containing, for example, one or more maps representing the environment in which the apparatus 103 operates, for use during the execution of the application 228. The apparatus 103 may communicate with the server 101, for example to receive instructions to navigate to specified locations and initiate data capture operations, via a communications interface 224 over the link 107 shown in FIG. 1. The communications interface 224 also enables the apparatus 103 to communicate with the server 101 via the dock 108 and the link 109.

As will be apparent in the discussion below, other examples, some or all of the processing performed by the server 101 may be performed by the apparatus 103, and some or all of the processing performed by the apparatus 103 may be performed by the server 101. That is, although in the illustrated example the application 128 resides in the server 101, in other embodiments some or all of the actions described below to detect objects on the shelves 110 from captured data may be performed by the processor 220 of the apparatus 103, either in conjunction with or independently from the processor 120 of the server 101. As those of skill in the art will realize, distribution of such computations between the server 101 and the mobile automation apparatus 103 may depend upon respective processing speeds of the processors 120 and 220, the quality and bandwidth of the link 107, as well as criticality level of the underlying instruction(s).

The functionality of the application 128 will now be described in greater detail. In particular, the detection of objects on the shelves 110 (or other suitable support structures) will be described as performed by the server 101. Turning to FIG. 3, a method 300 of detecting objects is shown. The method 300 will be described in conjunction with its performance by the server 101, with reference to the components illustrated in FIG. 1.

At block 305, the server 101 is configured to obtain a point cloud of the support structure, as well as a plane definition corresponding to the front of the support structure. In the present example, in which the support structures are shelves such as the shelves 110 shown in FIG. 1, the point cloud obtained at block 305 therefore represents at least a portion of a shelf module 110 (and may represent a plurality of shelf modules 110), and the plane definition corresponds to a shelf plane that corresponds to the front of the shelf modules 110. In other words, the plane definition defines a plane that contains the shelf edges 118.

The point cloud and plane definition obtained at block 305 can be retrieved from the repository 132. For example, the server 101 may have previously received captured data from the apparatus 103 including a plurality of lidar scans of the shelf modules 110, and generated a point cloud from the lidar scans. Each point in the point cloud represents a point on a surface of the shelves 110, products 112, and the like (e.g. a point that the scan line of a lidar sensor 211 impacted), and is defined by a set of coordinates (X, Y and Z) in the frame of reference 102. The plane definition may also be previously generated by the server 101 and stored in the repository 132, for example from the above-mentioned point cloud. For example, the server 101 can be configured to process the point cloud, the raw lidar data, image data captured by the cameras 207, or a combination thereof, to identify shelf edges 118 according to predefined characteristics of the shelf edges 118. Examples of such characteristics include that the shelf edges 118 are likely to be substantially planar, and are also likely to be closer to the apparatus 103 as the apparatus 103 travels the length 119 of a shelf module 110) than other objects (such as the shelf backs 116 and products 112). The plane definition can be obtained in a variety of suitable formats, such as a suitable set of parameters defining the plane. An example of such parameters includes a normal vector (i.e. a vector defined according to the frame of reference 102 that is perpendicular to the plane) and a displacement (indicating the distance along the normal vector from the origin of the frame of reference 102 to the plane).

At block 305 the server 101 is also configured to obtain a depth of the back 116 of the shelf 110, also referred to herein as the shelf depth. The shelf depth may be determined previously at the server 101 and therefore retrieved from the repository 132. The shelf depth can be determined, for example, by processing the point cloud, images of the shelf 110, or a combination thereof, to identify portions of the point cloud that are likely to correspond to the shelf back 116. An example of such processing includes decomposing an image of the shelf 110 into patches, and classifying each patch as depicting the shelf back 116 or not according to a similarity between the patch and a reference image of the shelf back 116. The server 101 can then be configured to identify points in the point cloud that correspond to the patches classified as depicting the shelf back 116, and to average the depth of such points to determine the shelf depth.

Further, at block 305 the server 101 is configured to obtain shelf edge positions. The shelf edge positions can be determined previously by the server (e.g. based on the characteristics noted above), and retrieved from the repository 132 at block 305. Shelf edge positions can be defined as bounding boxes in the frame of reference 102, relative to the plane definition, or the like.

Referring to FIG. 4A, a point cloud 400 is illustrated, depicting the shelf module 110-3. The shelf back 116-3, the shelf 117-3 and the shelf edge 118-3 are therefore represented in the point cloud 400, as are the products 112. Also shown in FIG. 4A is a plane definition 404 corresponding to the front of the shelf module 110-3 (that is, the plane definition 404 contains the shelf edges 118-3). FIG. 4A also illustrates the remaining inputs obtained at block 305, including a shelf depth 408 and shelf edge positions 412-1 and 412-2 (shown as bounding boxes overlaid on the portions of the point cloud 400 representing shelf edges 118).

The point cloud 400, plane definition 404, shelf depth 408 and shelf edge positions 412 need not be obtained in the graphical forms shown in FIG. 4A. As will be apparent to those skilled in the art, the point cloud may be obtained as a list of coordinates. The plane definition 404 can be obtained as the above-mentioned parameters defining a normal vector and displacement. The shelf depth 408 can be obtained as a scalar quantity, a vector, or the like, and the shelf edge positions 412 can be obtained as sets of coordinates (e.g. in the frame of reference 102) defining the corners of the bounding boxes shown in FIG. 4A.

Returning to FIG. 3, at block 310 the server 101 can be configured to transform the point cloud 400 to a secondary frame of reference based on the shelf plane 404. As shown in FIG. 4B, a transformed point cloud 400′ in shown, in which the coordinates of each point of the point cloud 400′ are expressed in a secondary frame of reference 416. The secondary frame of reference 416 has an origin on the plane 404 and thus, for each point in the point cloud, defines a planar position (in the X and Z dimensions, in the illustrated example) on the shelf plane 404 as well as a depth (in the Y dimension as illustrated) orthogonal to the shelf plane 404. Block 310 may reduce the computational load imposed by the remaining blocks of the method 300. However, in other embodiments, block 310 can be omitted.

Referring again to FIG. 3, at block 315, the server 101 is configured to discard a portion of the point cloud based on the position of the shelf back 116, as defined by the shelf depth 408. For example, the server 101 can be configured to discard any points in the point cloud with depths equal to or greater than the shelf depth 408. In other examples the server 101 is configured to discard any points in the point cloud with depths that are within a threshold (e.g. 10% below or above the shelf depth 408) of the shelf depth 408. Turning briefly to FIG. 5A, a further modified point cloud 500 is illustrated following the performance of block 310, at which the points corresponding to the shelf back 116-3 were discarded.

At block 320, the server 101 is configured to generate a three-dimensional occupancy grid from the point cloud as modified at blocks 305 and 310 (i.e. the point cloud 500, in the present example). The occupancy grid defines a plurality of cells, arranged according to the frame of reference 416. An example grid 502 is shown in FIG. 5B. In particular, the cells 504 of the grid 502 are arranged in depthwise layers or slices, as will be discussed below in greater detail. As also seen in FIG. 5B, in the present example, the cells 504 have a lower resolution than the point cloud 500. That is, each cell 504 represents a larger portion of the shelf module 110-3 than each point in the point cloud. For example, the point cloud may include points spaced apart by about 2 mm, while each cell 504 may have dimensions of about 2 cm×2 cm×2 cm. As will be apparent to those skilled in the art, a wide variety of other dimensions may also be employed for the point cloud 500 and the cells 504.

The occupancy grid 502 is generated by assigning each point of the point cloud to one of the cells 504 (specifically, to the cell encompassing a volume on the shelf module 110 that contains that point). Each cell 504 is then assigned a value indicating that the cell is either occupied (if any points were assigned to the cell 504) or unoccupied (if no points were assigned to the cell 504). In addition, the server 101 can be configured to store the assignment of points to cells 504, for example in the form of a list of points with a cell identifier corresponding to each point. The generation of the occupancy grid will be described below, for a portion 508 of the point cloud 500, as indicated in FIG. 5B

Turning to FIG. 6A, the portion 508 of the point cloud 500 is shown in isolation, along with three layers 600-1, 600-2 and 600-3 of the grid 502. To generate the first layer 600-1, the server 101 is configured to determine, for each cell 504 in the layer 600-1, whether the cell 504 contains any points from the point cloud 500. Thus, an example cell 504 a is assigned an occupied value (e.g. a value of one) because the cell 504 a contains points corresponding to a product 112. Another example cell 504 b, on the other hand, is assigned an unoccupied value because the cell 504 b does not contain any points in the point cloud 500 (that is, the volume contained within the cell 504 b is empty).

FIG. 6B illustrates, in two dimensions, each layer 600 mentioned above in the grid 502. In particular, in the illustrated example, cells assigned an occupied value are illustrated in white, while cells assigned an unoccupied value are illustrated in black. As will be apparent, other values may also be selected to indicate that a cell is occupied or unoccupied. The cell 504 a mentioned in connection with FIG. 6A is occupied, while the cell 504 b is unoccupied.

In the present example, the server 101 is configured, upon setting the value of a cell to “occupied”, to automatically set the value of every cell with the same planar position (i.e. in the and Z dimension) but a greater depth (in the Y dimension) to unoccupied, whether or not those cells contain points of the point cloud 500. Thus, in the layers 600-2 and 600-3, the cells at the same planar position as the cell 504 a but at greater depths are assigned unoccupied values, even though they may contain points corresponding to a product 112. As also seen in FIG. 6B, the layers 600-1, 600-2 and 600-3 each contain occupied cells corresponding to different portions of the cylindrical product 112. Further, the layer 600-1 contains occupied cells that correspond to the shelf edge 118-3.

Returning to FIG. 3, at block 325 the server 101 is configured to discard, e.g. by setting cell values to unoccupied, any cells corresponding to the shelf edge positions 412-1 and 412-2. For example, the server 101 can be configured to identify any cells (e.g. at any depth) having the same planar positions (i.e. in the XZ plane) as the shelf edge positions 412, and to update the values of such cells to unoccupied. Thus, returning to FIG. 6B, the server 101 is configured to update the layer 600-1 of the grid to generate a later 600-1′ in which the cells coinciding with the shelf edge position 412-2 are set to unoccupied. Updated versions of the layers 600-2 and 600-3 may also be generated, but their content is identical to the layers 600-2 and 600-3 as shown in FIG. 6B. In other embodiments, the performance of block 325 may be delayed until later in the method 300, as will be discussed below.

Following the performance of block 325, the server 101 is configured to detect contiguous regions in the occupancy grid 502. Each contiguous region so detected corresponds to an object, such as a product 112. In the present example, the server 101 is configured to detect contiguous regions beginning at block 330. At block 330, the server 101 is configured to select a layer of the grid 502 (e.g. the layer closest to the shelf plane 404), and to detect contiguous sub-regions in the selected layer. At block 335, the server 101 is configured to determine whether any layers remain to be processed. When the determination at block 335 is affirmative, the next layer 600 is selected and contiguous sub-regions detected, at block 330. When the determination at block 335 is negative, the performance of the method 300 proceeds to block 340.

Referring to FIG. 7, three sets of contiguous sub-regions are illustrated, arising from three performances of block 330 (for each of the layers 600-1, 600-2 and 600-3). In particular, a first set of contiguous sub-regions 700-1 and 700-2 are identified in the layer 600-1. A second set of contiguous sub-regions 704-1 and 704-2 are identified in the layer 600-2, and a third set of contiguous sub-regions 708-1 and 708-2 are identified in the layer 600-3. Identification of contiguous sub-regions 700, 704, 708 and the like can be implemented via a suitable blob extraction (also referred to as connected-component analysis) algorithm. In general, the detection of contiguous sub-regions is configured to detect regions of cells in each layer 600 with the same value. More specifically, in the present example the server 101 is configured to identify regions of cells in each layer 600 with “occupied” values.

At block 340, following a negative determination at block 335, the server 101 is configured to continue the identification of contiguous regions by determining, for each sub-region detected at block 330, whether any adjacent layers 600 (to the layer containing the current sub-region) contain abutting sub-regions. As noted in connection with FIG. 6B and as seen in FIG. 7, certain objects (e.g. the cylindrical product 112 shown in FIG. 6A), particularly those with surfaces that are not parallel to the shelf plane 404, appear segmented between layers 600 of the grid 502, and may therefore be represented by a plurality of sub-regions. In other words, at block 340, the server 101 is configured to determine whether any sub-regions detected through one or more performances of blocks 330-335 correspond to a single object.

Turning to FIG. 8, the determination at block 340 for a selected sub-region includes determining whether the planar position of the selected sub-region and the planar position of another sub-region in an adjacent layer 600 of the grid 502 abut each other. For example, beginning with the sub-region 700-2, which resides in the layer 600-1, the server 101 is configured to determine whether the sub-region 700-2 shares a boundary in the XZ plane of the frame of reference 416 with a boundary of any sub-region in the layer 600-2 (which is adjacent in depth to the layer 600-1). In the present example, the determination is affirmative for both the sub-regions 704-1 and 704-2 in the layer 600-2. The server 101 is therefore configured, at block 345, to merge the sub-regions 700-2, 704-1 and 704-2, e.g. by assigning a common region identifier to all three sub-regions.

At block 350, the server 101 is configured to determine whether any sub-regions remain to be assessed via a further performance of block 340. In the present example, the determination is affirmative, and block 340 is repeated, for example by selecting the sub-region 700-1. As there are no sub-regions in the layer 600-2 with planar positions abutting the planar position of the sub-region 700-1, the determination at block 340 is negative.

In a further example performance of block 340, the server 101 may be configured to select the sub-region 704-1 of the layer 600-2. As is evident in FIG. 8, the boundary of the sub-region 708-1 (in the layer 600-3) coincides with the boundary of the sub-region 704-1 in the XZ plane. The determination at block 340 is therefore affirmative, and the sub-regions 704-1 and 708-1 are merged (i.e. assigned the same region identifier). As will now be apparent, repeated performances of block 340, 345 and 350 result in the sub-regions 700-2, 704-1, 704-2, 708-1 and 708-2 being merged and assigned one region identifier, and in the sub-region 700-1 assigned another region identifier. In other words, following a negative determination at block 350 (i.e. when all sub-regions have been assessed via block 340), two contiguous regions 800 and 804 have been detected within the grid 502. FIG. 9A illustrates the contiguous regions 800 and 804 in an overhead view.

At block 355, the server 101 is configured to generate detected object positions based on the contiguous regions detected at blocks 330-350. For each detected contiguous region, the server 101 is configured to generate one detected object position. Various forms of object position are contemplated. In the present example, as illustrated in FIG. 9B, the detected object positions are generated as bounding boxes containing the volumes encompassed by the cells of the corresponding contiguous regions. Thus, a first bounding box 900 is generated from the contiguous region 800, and a second bounding box 904 is generated from the contiguous region 804.

In other examples, the detected object positions can be generated as the centroids of each contiguous region (e.g. a single point in the frame of reference 416). In further examples, the above-mentioned bounding boxes can be generated based on the point cloud 500 rather than based directly on the contiguous regions 800 and 804. For example, as noted above, the allocation of points to the cells of the occupancy grid 502 can be stored in the memory 122. At block 355, for each contiguous region the points associated with the cells of that contiguous region are retrieved from the memory 122 and a bounding box is fitted to the retrieved cells.

The detected object positions generated at block 355 can be stored in the memory 122 (e.g. in the repository 132), and can also be transmitted to a further computing device such as the client device 105, e.g. for presentation on a display thereof. The detected object positions generated at block 355 may also be employed by the server 101 itself or by another computing device for the detection of gaps between products 112. For example, the server 101 can be configured to retrieve label positions on the shelf edges 118, indicating the expected position for products 112, and to determine whether a detected object position was generated in association with each label position (e.g. above each label position, indicating the presence of a product 112 above the corresponding label). Any label positions without corresponding detected object positions may be detected as gaps (e.g. out of stock products 112) by the server 101.

Variations to the above systems and methods are contemplated. For example, as noted earlier, in some embodiments, block 325 may be performed following a negative determination at block 335 (i.e. between blocks 335 and 340). In such embodiments, the presence of occupied cells corresponding to shelf edges may lead to the detection of a single contiguous sub-region that in fact corresponds to distinct objects as a result of the shelf edge extending between the portions of the sub-region corresponding to each object. Responsive to discarding cells corresponding to the shelf edges 118, the server 101 may therefore be configured to relabel remaining sub-regions where such sub-regions have been separated (i.e. are no longer contiguous).

In further embodiments, the server 101 can be configured, prior to the performance of block 310, to segment the point cloud obtained at block 305. Specifically, referring to FIG. 10, an example point cloud 1000 obtained at block 305 is shown. The point cloud 1000 represents two distinct shelf modules, separated by a module boundary 1004. The server 101 can be configured, in such embodiments, to retrieve module boundary positions (e.g. in the frame of reference 102) from the repository 132, or to detect the module boundary 1004, for example via image gradients or the like, and to segment the point cloud 1000 into first and second segments 1008-1 and 1008-2. The server 101 can then be configured to perform the remainder of the method 300 separately for each segment 1008.

In the foregoing specification, specific embodiments have been described. However, one of ordinary skill in the art appreciates that various modifications and changes can be made without departing from the scope of the invention as set forth in the claims below. Accordingly, the specification and figures are to be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of present teachings.

The benefits, advantages, solutions to problems, and any element(s) that may cause any benefit, advantage, or solution to occur or become more pronounced are not to be construed as a critical, required, or essential features or elements of any or all the claims. The invention is defined solely by the appended claims including any amendments made during the pendency of this application and all equivalents of those claims as issued.

Moreover in this document, relational terms such as first and second, top and bottom, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms “comprises,” “comprising,” “has”, “having,” “includes”, “including,” “contains”, “containing” or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises, has, includes, contains a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by “comprises . . . a”, “has . . . a”, “includes . . . a”, “contains . . . a” does not, without more constraints, preclude the existence of additional identical elements in the process, method, article, or apparatus that comprises, has, includes, contains the element. The terms “a” and “an” are defined as one or more unless explicitly stated otherwise herein. The terms “substantially”, “essentially”, “approximately”, “about” or any other version thereof, are defined as being close to as understood by one of ordinary skill in the art, and in one non-limiting embodiment the term is defined to be within 10%, in another embodiment within 5%, in another embodiment within 1% and in another embodiment within 0.5%. The term “coupled” as used herein is defined as connected, although not necessarily directly and not necessarily mechanically. A device or structure that is “configured” in a certain way is configured in at least that way, but may also be configured in ways that are not listed.

It will be appreciated that some embodiments may be comprised of one or more specialized processors (or “processing devices”) such as microprocessors, digital signal processors, customized processors and field programmable gate arrays (FPGAs) and unique stored program instructions (including both software and firmware) that control the one or more processors to implement, in conjunction with certain non-processor circuits, some, most, or all of the functions of the method and/or apparatus described herein. Alternatively, some or all functions could be implemented by a state machine that has no stored program instructions, or in one or more application specific integrated circuits (ASICs), in which each function or some combinations of certain of the functions are implemented as custom logic. Of course, a combination of the two approaches could be used.

Moreover, an embodiment can be implemented as a computer-readable storage medium having computer readable code stored thereon for programming a computer (e.g., comprising a processor) to perform a method as described and claimed herein. Examples of such computer-readable storage mediums include, but are not limited to, a hard disk, a CD-ROM, an optical storage device, a magnetic storage device, a ROM (Read Only Memory), a PROM (Programmable Read Only Memory), an EPROM (Erasable Programmable Read Only Memory), an EEPROM (Electrically Erasable Programmable Read Only Memory) and a Flash memory. Further, it is expected that one of ordinary skill, notwithstanding possibly significant effort and many design choices motivated by, for example, available time, current technology, and economic considerations, when guided by the concepts and principles disclosed herein will be readily capable of generating such software instructions and programs and ICs with minimal experimentation.

The Abstract of the Disclosure is provided to allow the reader to quickly ascertain the nature of the technical disclosure. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims. In addition, in the foregoing Detailed Description, it can be seen that various features are grouped together in various embodiments for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the claimed embodiments require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive subject matter lies in less than all features of a single disclosed embodiment. Thus the following claims are hereby incorporated into the Detailed Description, with each claim standing on its own as a separately claimed subject matter. 

1. A method of detecting objects on a support structure, the method comprising: obtaining a point cloud of the support structure supporting an object; obtaining a position of a back of the support structure in the point cloud; discarding a portion of the point cloud based on the position of the back of the support structure; generating a three-dimensional occupancy grid from the point cloud, the occupancy grid having a plurality of cells each indicating whether the cell is one of occupied and unoccupied; identifying a contiguous region of occupied cells in the occupancy grid corresponding to the object; and generating a detected object position based on the contiguous region.
 2. The method of claim 1, wherein the detected object positions comprises a bounding box.
 3. The method of claim 1, wherein obtaining the position of the back of the support structure includes: obtaining (i) a plane definition corresponding to a front of the support structure, and (ii) a depth from the plane definition to the back of the support structure.
 4. The method of claim 3, wherein discarding the portion of the point cloud at the position of the back of the support structure includes discarding points within a threshold depth matching the depth from the plane definition to the back of the support structure.
 5. The method of claim 3, wherein the point cloud defines a plurality of points according to a common frame of reference; the method further comprising: before discarding the portion, transforming the points from the common frame of reference to a secondary frame of reference defining, for each point, a position on the plane definition and a depth orthogonal to the plane definition.
 6. The method of claim 5, wherein generating the occupancy grid comprises, for each position on the plane definition: determining a first depth of a point nearest to the plane definition; and storing, in a cell of the occupancy grid containing the point, an occupied indicator, and storing, in each cell of the occupancy grid having the position on the plane definition and a greater depth than the first depth, an unoccupied indicator.
 7. The method of claim 6, wherein identifying the contiguous region comprises: in a first set of cells having a first common depth, identifying a first contiguous sub-region; in a second set of cells having a second common depth, identifying a second contiguous sub-region; determining whether to merge the first and second contiguous sub-regions; and when the determination is affirmative, merging the first and second contiguous sub-regions to generate the contiguous region.
 8. The method of claim 7, wherein determining whether to merge the first and second contiguous sub-regions comprises: determining whether a first position on the plane definition of the first contiguous sub-region abuts a second position on the plane definition of the second contiguous sub-region.
 9. The method of claim 1, further comprising: prior to identifying the contiguous region, discarding a portion of the cells corresponding to support structure edge positions.
 10. A computing device for detecting objects on a support structure, comprising: a memory storing (i) a point cloud of the support structure supporting an object, and (ii) a position of a back of the support structure in the point cloud; an imaging controller connected to the memory, the imaging controller configured to: retrieve, from the memory, the point cloud and the position of the back of the support structure in the point cloud; discard a portion of the point cloud based on the position of the back of the support structure; generate a three-dimensional occupancy grid from the point cloud, the occupancy grid having a plurality of cells each indicating whether the cell is one of occupied and unoccupied; identify a contiguous region of occupied cells in the occupancy grid corresponding to the object; and generate a detected object position based on the contiguous region.
 11. The computing device of claim 10, wherein the detected object positions comprises a bounding box.
 12. The computing device of claim 10, wherein the imaging controller is further configured, to obtain the position of the back of the support structure, to: retrieve from the memory (i) a plane definition corresponding to a front of the support structure, and (ii) a depth from the plane definition to the back of the support structure.
 13. The computing device of claim 12, wherein the imaging controller is further configured, to discard the portion of the point cloud at the position of the back of the support structure, to: discard points within a threshold depth matching the depth from the plane definition to the back of the support structure.
 14. The computing device of claim 12, wherein the point cloud defines a plurality of points according to a common frame of reference; and wherein the imaging controller is further configured to: before discarding the portion, transform the points from the common frame of reference to a secondary frame of reference defining, for each point, a position on the plane definition and a depth orthogonal to the plane definition.
 15. The computing device of claim 14, wherein the imaging controller is further configured, to generate the occupancy grid, to: for each position on the plane definition: determine a first depth of a point nearest to the plane definition; and store, in a cell of the occupancy grid containing the point, an occupied indicator, and storing, in each cell of the occupancy grid having the position on the plane definition and a greater depth than the first depth, an unoccupied indicator.
 16. The computing device of claim 15, wherein the imaging controller is further configured, to identify the contiguous region, to: in a first set of cells having a first common depth, identify a first contiguous sub-region; in a second set of cells having a second common depth, identify a second contiguous sub-region; determine whether to merge the first and second contiguous sub-regions; and when the determination is affirmative, merge the first and second contiguous sub-regions to generate the contiguous region.
 17. The computing device of claim 16, wherein the imaging controller is further configured, to determine whether to merge the first and second contiguous sub-regions, to: determine whether a first position on the plane definition of the first contiguous sub-region abuts a second position on the plane definition of the second contiguous sub-region.
 18. The computing device of claim 10, wherein the imaging controller is further configured to: prior to identifying the contiguous region, discard a portion of the cells corresponding to support structure edge positions.
 19. A non-transitory computer-readable medium storing a plurality of computer-readable instructions executable by a processor of a computing device, wherein execution of the instructions configures the computing device to: obtain a point cloud of a support structure supporting an object; obtain a position of a back of the support structure in the point cloud; discard a portion of the point cloud based on the position of the back of the support structure; generate a three-dimensional occupancy grid from the point cloud, the occupancy grid having a plurality of cells each indicating whether the cell is one of occupied and unoccupied; identify a contiguous region of occupied cells in the occupancy grid corresponding to the object; and generate a detected object position based on the contiguous region.
 20. The non-transitory computer-readable medium of claim 19, wherein the detected object positions comprises a bounding box. 